package net.uzen.office.common.controller;

import java.util.Locale;

import org.springframework.web.servlet.mvc.SimpleFormController;

public class BaseFormController extends SimpleFormController {
	
	protected String getMessage(String code) {
		return getMessageSourceAccessor().getMessage(code);
	}
	
	protected String getMessage(String code, Locale locale) {
		return getMessageSourceAccessor().getMessage(code, locale);
	}
	
	protected String getMessage(String code, Object[] args) {
		return getMessageSourceAccessor().getMessage(code, args);
	}
	
	protected String getMessage(String code, Object[] args, Locale locale) {
		return getMessageSourceAccessor().getMessage(code, args, locale);
	}
}
